<template>
  <div />
</template>
<script lang="ts" setup>
import { onMounted } from 'vue';

import { useRoute, useRouter } from 'vue-router';

const router = useRouter();
const replaceAll = (str: string, substr: string) => {
  if (!str) {
    return str;
  }
  return str.replace(new RegExp(substr, 'gm'), '');
};
onMounted(() => {
  const { fullPath } = useRoute();
  router.replace(`${replaceAll(fullPath, '/redirect')}`);
});
</script>
